<?php
/**
 * Created by PhpStorm.
 * User: hc
 * Date: 2016/7/11
 * Time: 16:08
 */

namespace Home\Controller;


use Think\Controller;

class UserController extends LoginBaseController
{

    /**
     * User新增界面
     */
    public function addUserPage()
    {
        $this->assign('operate_name', '新增客户');
        $this -> display('user/useradd');
    }

    /**
     * User新增界面
     */
    public function editUserPage()
    {
        $user = M('user_info')->where('user_id = "%s"', array(I('user_id')))->find();
        $this->assign('user', $user);
        $this->assign('operate_name', '更新');
        $this -> display('user/useradd');
    }

    /**
     * 跳转至查询界面
     */
    public function listUser(){
        $this -> display('user/userlist');
    }

}